<template>
  <div class="info-right-wrap">
    <div
      class="info-right-head pointer"
      :class="customSbstractFlg ? 'is-unfold' : ''"
      @click="customSbstractFlg = !customSbstractFlg"
    >
      <span class="info-right-title">客户摘要</span>
      <i class="el-icon-arrow-down"></i>
    </div>
    <div class="info-right-con" v-if="customSbstractFlg">
      <div class="info-item-wrap">
        <div class="item-left">
          跟进次数
          <!-- <i class="rp rp-icon-fill-help rp-help-tips ml4"></i> -->
        </div>
        <div class="item-right">0次</div>
      </div>
      <div class="info-item-wrap">
        <div class="item-left">未跟进时长</div>
        <div class="item-right">1天</div>
      </div>
      <div class="info-item-wrap">
        <div class="item-left">商机数量</div>
        <div class="item-right">0</div>
      </div>
      <div class="info-item-wrap">
        <div class="item-left">
          商机总额
          <!-- <i class="rp rp-icon-fill-help rp-help-tips ml4"></i> -->
        </div>
        <div class="item-right">0.00元</div>
      </div>
      <div class="info-item-wrap">
        <div class="item-left">成交次数</div>
        <div class="item-right">0次</div>
      </div>
      <div class="info-item-wrap">
        <div class="item-left">成交总额</div>
        <div class="item-right">0.00元</div>
      </div>
      <div class="info-item-wrap">
        <div class="item-left">回款总额</div>
        <div class="item-right">0.00元</div>
      </div>
      <div class="info-item-wrap">
        <div class="item-left">未回款总额</div>
        <div class="item-right">0.00元</div>
      </div>
      <div class="info-item-wrap">
        <div class="item-left">开票总额</div>
        <div class="item-right">0.00元</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
    data(){
        return{
            customSbstractFlg:true,
        }
    }
}
</script>

<style lang="scss" scoped>
.info-right-wrap {
  flex-shrink: 0;
  width: 280px;
  .info-right-head {
    background-color: transparent;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 16px;
    border: 1px solid #dfe1e6;
    border-radius: 4px;
    .info-right-title {
      font-size: 14px;
      font-weight: 500;
      flex-shrink: 0;
      color: #172b4d;
    }
  }
  .info-right-con {
    padding: 16px;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
    border: 1px solid #dfe1e6;
    border-top-color: #fff;
    .info-item-wrap:not(:first-child) {
      margin-top: 16px;
    }
    .info-item-wrap {
      display: flex;
      flex-wrap: wrap;
      // margin-top: 16px;
      line-height: 1.5;
      .item-left {
        position: relative;
        width: 80px;
        color: #6b778c;
      }
      .item-right {
        flex: 1;
        margin-left: 16px;
        color: #172b4d;
      }
    }
  }

  .is-unfold {
    border-radius: 4px 4px 0 0;
  }
}
</style>